package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by malliks on 25/02/14.
 */
public class Customer
{
    List checkedoutbooks=new ArrayList<String>();

    private String library_number;

    public String getPassword() {
        return password;
    }

    public String getLibrary_number() {
        return library_number;
    }

    private String password;

    public Customer( )
    {
        this.password = "123";
        this.library_number = "123";
    }

    public void addToCheckedOutBook(String bookname)
    {
        checkedoutbooks.add(bookname);
    }


    public List<String> getCheckedOutBookList()

    {

        return checkedoutbooks;
    }

    public boolean removeFromCheckedOutBookList(String bookname)
    {
        if(checkedoutbooks.remove(bookname))
            return true;
        else
            return false;

    }
}
